<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>详情</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,address=no"/>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../css/zy_common.css"/>
    <link rel="stylesheet" href="../css/zy_base.css"/>
</head>
<body>
<div class="bw plr24">
    <div class="flex_a h100 bdb">
        <img src="../img/icon7.png" alt="" style="width: .51rem;"><span class="font15 col6 ml20" id="status"></span>
    </div>
    <div class="flex_sb h100">
        <span class="col3 font15" id="statusText"></span><span class="color2 font20" id="money"></span>
    </div>
</div>
<div class="mt20 plr24 ptb30 bw col9 font15" id="content">
    <p>提现时间：2018-07-09 09:18:00</p>
    <p class="mt10">提现到：5435313553（微信）</p>
    <p class="mt10">流水号：2563158455</p>
    <p class="mt10">状态：审核中</p>
</div>
</body>
</html>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/dlc.js"></script>
<script>
    $(function () {
        dlctipbox.loading('请稍后');
        dlc_request('/api/walletDetail/queryWdInfo',{id:getUrlParam('id')},function (res) {
            console.log(res);
            dlctipbox.clear();
            if(res.code==1){
                var res = res.data;
                $('#status').text(res.type==1?'提现':'收入');
                $('#statusText').text(res.type==1?'提现金额':'收入金额');
                $('#money').text((res.type==1?'-':'+')+'￥'+res.money);
                var str='';
                str+='<p>'+(res.type==1?'提现时间：':'收入时间：')+format(res.createTime,'Y-m-d H:i:s')+'</p>';
                if(res.type==2){
                    str+='<p class="mt10">类型：销售收入</p>';
                }else{
                    str+='<p class="mt10">提现到：'+res.wxCount+'（微信）</p>';
                }
                str+='<p class="mt10">流水号：'+res.orderNo+'</p>';
                if(res.type==2){
                    str+= '<p class="mt10">状态：成功</p>';
                }else{
                    str+= '<p class="mt10">状态：'+(res.status==1?'审核中':res.status==2?'审核失败':res.status==3?'已完成':res.status==4?'提现中':'提现失败')+'</p>';
                    if(res.status==2 || res.status==5){
                        str+='<p class="mt10">原因：'+res.reason+'</p>';
                    }
                }
                $('#content').html(str);

            }else{
                dlctipbox.show(res.msg);
            }
        })
    })
</script>